update destroy with js