Added jshint and make it pass.
Added coverage.