cleaning up jshint warnings and errors.