tie jquery to dom