jshint now also checks javascript inside html views
fixed jshint warnings