Fixed CodeSniffer/JSHint issues.