[BUGFIX] Use jQuery iterator for proper contextual variable handover