change template.html tests script to tests.js