my class-checking isn't working under the new version of node. maybe this will work.
fix unicode wart in comment.
oh ffs. js "reverse()" MUTATES THE ORIGINAL ARRAY. make a temporary reversed copy. two middle fingers to whoever thought a mutating reverse() would be hilarious.