Expecting EOF found '}'

I have found the error above in unity and also “expecting ), found ‘}’” at line 40.
EOF is at line 47.
#pragma strict

function Start () {

}
var walkAcceleration : float = 5;
var cameraObject : GameObject;
var maxWalkSpeed : float = 20;
@HideInInspector
var horizontalMovement : Vector2;
var jumpVelocity : float = 5;
var grounded : boolean = false;
var maxSlope = 60;

function Update () 
{
    horizontalMovement = Vector2(rigidbody.velocity.x, rigidbody.velocity.z);
	if (horizontalMovement.magnitude > maxWalkSpeed)
	{
	    horizontalMovement = horizontalMovement.normalized;
		horizontalMovement *= maxWalkSpeed;
	
	}
	rigidbody.velocity.x = horizontalMovement.x;
	rigidbody.velocity.z = horizontalMovement.y;
	
	transform.rotation = Quaternion.Euler(0, cameraObject.GetComponent(Mouselookscript).currentYRotation, 0);
	rigidbody.AddRelativeForce(Input.GetAxis("Horizontal") * walkAcceleration, 0, Input.GetAxis("Vertical") * walkAcceleration);
	
	if(Input.GetButtonDown("Jump")&& grounded)
	   rigidbody.AddForce(0,jumpVelocity,0);
    
	
}

function OnCollisionStay (collision : Collision)
{
    for (var contact : ContactPoint in collision.contacts
    
	{
	
        if(Vector3.Angle(contact.normal, Vector3.up) < maxSlope)
	
	         grounded = true;
    }

}

Not sure if this is your problem or some issue with the paste, but you are missing a ‘)’ at the end of line 36.