improved js.js with jshint