I was able to follow simple examples on the web for AJAX and it works as expected. (https://www.w3schools.com/xml/tryit.asp?filename=tryajax_first)
The problem is, that example has me using a page that is in the web directly. How do I tell AJAX I want to use the regular Pages folder, like core pages use?