Remove JQuery dependency by coding XMLHttpRequest directly.