Object-oriented AJAX requests in Javascript.