Implemented jshint and more promises.