Fix some jslint/jshint warnings