Cleanup code
Add jshint test