Fix JSHint issues