Removes old AJAX code not needed anymore.