Cleanup of code with jshint