Fixed JSHint issues.