JSHint, fixes