jshint fixes and build