Fixed JSHint complains