Fixed example rendering at the end of a file
Improved highlightNode() to differentiate identical nodes and moved it to TemplateHelper