Updated jquery for returning books