remove js error on delete child node