Simple Long polling script