fixed heap.js scope in the project