Use XHR instead of jQuery