pop() doesn't accept an argument in JS - Use shift() instead.
Merge pull request #2 from bradnewman/master

pop() doesn't accept an argument in JS - Use shift() instead.