Lint using jshint and run linter on Travis

Closes #279