Implemented bezierPoint and bezierTangent function in curves.js