+atomJquery = require('atom').$
 $ = require("jquery")
 require('jquery-ui/draggable');
 

		canvas = document.getElementById("cubic-bezier")
		@context = canvas.getContext("2d")
		@drawInitialCurve()


		drag = () =>

		$(canvas).on 'mousemove', (e) => @timeDelay e
		@plotCurve()
		@playBall()



	validateBezierPoint : (p) ->
