Clean up jquery for manage