prevent script tags to include source.js when the node is a ng-template ...

ng-template script nodes have raw HTML in them and thus should not be interpreted as javascript.

That being said, maybe the detection could be extended for anything that has a type="..." that is different from text/javascript ?