apply destryoing with AJAX