canvas

add animate gravity JS file
change bezierCurveTo.php into JS file