jquery for communicating with the backend