Fix some jshint flagged bugs