Added .jshintrc
Reconfigured grunt jshint task
Code style and refactor based on JSHint settings