Added config for jshint. Beautified code