[jquery] Invoking a jQuery function after .each() has completed