antimatter15/heapqueue.js — pull request #1 by tonglil (2014-04-23 04:04:53+00:00)
Title: Fixed .pop() and length.

Hi, neat little thing you wrote there.
I gave it a try on a fiddle and the last element doesn't get popped, so I added the else statement.
Also decremented the length counter when the method gets popped.
Lastly, the tabs got changed to spaces (I can revert that if you'd like).