Added jshint support
Refactoring for jshint