Added the js files to the templates programatically