Pass row/column keys to prioqueue. fixes #72

Please review, especially the horrible details which reveal my javascript unskills