add builder to build tree from js object
update readme for builder