Visualization with javascript