First big commit of working HTML5 graphs