Treap JS updated