primitive version of AJAX