code refactor, install jshint if node.js & npm installed