Ran jshint on files and fixed some problems.
more jshint fixes