posting saved search to server and retrieving it in ajax get