Use flycheck/jshint for style checking JS files