fix jshint errors in templates