fix endlines
convert BorderPanel.js and FolderTree.js to TypeScript