lib: port to heap.js@0.7.1