package: update heap.js