adding ability to create javascript files for templates