Remove JQuery dependency with simple XmlHttpRequest code