 		canvas = document.getElementById("cubic-bezier")
 		@context = canvas.getContext("2d")
 		@drawInitialCurve()
+
+		$('#okButton').click (e) => @applyToEditor()
 
 
 		drag = () =>

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


	validateBezierPoint : (p) ->

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

