encapsulate AJAX helpers, get the list retrieval to work (more broken pointers still)