add jshint, refactoring