fix spelling
clean up  code with jshint