Temporary revert to XmlHttpRequest

AJAX call was not correctly receiving the response, text was apparently undefined.
Also, I don't know AJAX with jQuery very well, so... yeah.
Fix it if you want, but make sure the database communication is working.