Update bst.js

if the value is 0(which could be a index number or a degree number), all of the data under this node will be deleted