Upgrades jQuery references on templates