add btree js implementation