jshint.
Added integration test.