Revert "Fixed the AJAX calling wait page."

This reverts commit 0df19a72fa8b4bf32700cc2ea4632e663d831cec.