Updated to properly display icon for new node.

By updating the 'addNode' function's 'onSuccess' call to pass in the cssClass property mapped to the type argument, the new node's icon is properly displayed.