The code I have looks like this:
If anyone has any ideas as to why this doesn't work I would be very appreciative. If there is not enough info given I will be glad to provide more.
NOTE: There is no error message it just doesn't work. I have tried using the console log and it still doesn't work. The rest of the plugin works fine with the exception of the script.