allowing script dependency to be loaded securely
rewriting factory to not allow access to parent node
simplifying html for text editor