Simplified the js, and adapted the jshint config.