Small refactoring, adding JSHint and Grunt
Updating readme with changelog.