Fail a build in travis when there are jslint errors

Closes #1036.