Fix JSCS and JSHint issues