some jshint fixes