chart rendering: replace numbers with variables, fix problem with siblings of father and no ancestors, add first unit tests (nodeunit)