Fix some minor syntax and style issues reported by eslint and jscs.