Fibonacci Heap implementation in Javascript