Create heapsort.js