Error while pressing a key

What to do to solve this error. I think the problem is when defining maxPoint variable.

** I’m using paper.js library in my project.

My Code:

<!DOCTYPE html>
	<title>patatap clone</title>
	<script type="text/javascript" src="paper-full.js"></script>
	<link rel="stylesheet" type="text/css" href="patatap.css">
	<script type="text/paperscript" canvas="myCanvas">

    function onKeyDown(event) {
    	var maxPoint = Point(view.size.width , view.size.height);
    	var randomPoint = Point.random();
    	var point = maxPoint * randomPoint;
    	 var myCircle = new Path.Circle(point, 10);
         myCircle.fillColor = 'powderblue';
	<canvas id="myCanvas" resize></canvas>


Point is not a function u need to create a object using constructot so u need to mention new before calling it like below.

“var maxPoint = new Point(view.size.width , view.size.height);”

Yes,got it.Thank you so much.