A simple uniform-knot BSpline curve implementation by javascript