Treeview sortable rework with JSLint

* Fix #438