Trying AJAX testing, not working
Added onError callbacks to all functions