Update with recent jquery code