long-polling AJAX, websockets alternative, PHP and Javascript