re-enabled infinite loop waiting for the plugin and doubled the injection function so that it works on IE9