Validate Node Names

<b>Additions</b>
-  Validate node names so that they do not break Javascript.