fixed getLibraryNode() for IE11. Added missing break statement to parseTexture()

The selector for querySelectorAll did not work correctly in IE11 for finding a node id in library_nodes. We now query for the nodes and scan for the correct ID in the node attributes.

Also cleaned up some code and added a missing break statement.