replaced jQuery .getAJAX with vanilla JS