adds injectJs method