lib: simplify calls using new heap.js