Add license header to the js.
Remove unused variable.
Update jshint config.