Update heapsort.js