Fixed JSHint issues