Fix obvious errors reported by jshint