Prepared tree.js from processsing file and template view