Resolved a few JSHint issues.