Filemanager folder tree fix for Chrome.

Chrome handles the keys in objects differently than Firefox. That is why in Chrome the tree was messy. This change turns the keys temporarily to strings to keep the correct order and then in javascript reverts original indexes.