added component.js to src to encapsulate Grid, Tree and Bush.