Angular.js support

This patch retains HTML comments in node elements to ensure they're tracked by angular. Removing everything but [nodeType = 1](http://www.w3schools.com/jsref/prop_node_nodetype.asp) removes the ng-repeat HTML comment decoration (nodeType = 8) which breaks angular.js when adding new elements to the underlying object array. 

I spent way too long working out why using waterfall on an angular ng-repeat which had a lazy load button was causing the entire ng-repeat to empty. Please accept so others may benefit from my hours of debugging DOM element removal and angular.js internals :smiley: