fixed some jshint goodness