Update class.DirectoryPage.php

Fix a few jquery AJAX issues