fix access to undefined.
Add feature and refactor js and templates.
- new document/spreadsheet/presentation and folder.