Angular.js support

This patch includes HTML comments in the node elements to keep, and ensures it doesn't do positioning on them. 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: