cleaned up whitespaces and a few missing semicolons  after running through jshint