Cleaned and separated treeView.js content.
Merge pull request #110 from darkowlzz/dialogSeparation

Cleaned and separated treeView.js content.