[jQuery] Preserving context within closure

[jQuery] Preserving context within closure

> From: Jonas Galvez (via Patrick Hall)