JavaScript AJAX/long-polling library