Change application.js to include tree