Fixed .jshint issues on templates

Closes #14