Why a separate function here and not making it part of the general jQuery one?