Make the deletion confirmation in hard PHP instead of fragile javascript.