Added try/catch to ajax so I can merge this branch

Now that there is a try/catch, I can merge because ajax doesnt register
php files on your local machine.