Lint all code with jshint
Make tests less picky