Simple javascript module for AJAX access to server resources