Configure Grunt with JSHint, refactor.