Run jshint on tests and make spec file jshint compatible