Heap implementation for some JavaScript VM