improve naming a little
add a welcome message to the code
fix typo that was breaking tests
reorder code and make slightly shorter
curNode is just the same as lastOf(nodeStack)
slightly improve filesize after minification