Cleaning up code some via jshint (issue #6)