AJAX-ify the library