Writting a tree using raphael.js