Fix up errors caught by jshint