style(jshint): some style fixes and jshint compatibility improved