Manual revert from last commit. Removed all AJAX functionality.