Updated the Template files to ensure that the file has a .js extension