Actually exit with an error when tests fail

Also changes "grunt test" to also run jshint
Fix lint error