Simple Javascript AJAX class