Why?
I was concerned about having ajax.php in the root and at the same time wanted to keep all the files for this project together.

With ajax.php in the root, it can be accessed directly.