To draw B-spline with HTML5