Client-server communication between JS and PHP by Ajax long polling.