Simple Long Polling script