Fixed loading treeview as AMD-module

Issue #11