Test of drawing a graph on a HTML5 Canvas using JavaScript