updating the jquery for the modal window