Fix JSCS and JSHint errors.