Very basic heap implementation in javascript