Use ScriptInjector instead of adding code in the HTML file