reverse last code changes with AJAX