Cleaning up JS (jshint)