ajax('/api/users', function(){}, 'json');
(of course, if you want to know about compatibility, http://caniuse.com/#search=xmlhttprequest )