Updated to properly display icon for new node.

Proposed change is seen below:
```js
    addNode : function (parent, type, name, onSuccess) {
        nextId = nextId + 1;
        // add cssClass to properly display icon
        onSuccess({ id: nextId, parent: parent, name: name, cssClass: type }); 
    }
```