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.
Merge pull request #13 from mrbrianwendt/patch-1

Updated to properly display icon for new node.