graph model visualization with javascript