AJS-5 injecting the plugin using an event instead of an interval. Also reversed the declaration of console as it wasn't working in IE 9 unless the console was opened