Fixed .jshint issues on templates

* Fixed .jshint issues on templates
* fix index.css loading issue
* updated the tests