Simple java script wrapper class for AJAX