Add materials.js file with tree mock-up.
Add gon to Gemfile.
Properly populate file tree.
Bind to tree.select instead of tree.click.