ran jshint again and fixed all the errors