Revert "Modified js for better ajax serving."

This reverts commit 35f88ddefedf9614261f4a65cd64691f4c1804c2.