CHG: Major optimization of the category tree JavaScript code, increasing rendering performance and preventing slow script errors on IE8 and older for large trees

git-svn-id: http://svn.montala.net/svn/resourcespace@5173 c08608d7-6e46-0410-86ca-f2a6f1370df5