I need to turn this C# to Js

I dont know about programming and I need to turn this C# to Js.

using UnityEngine;

public class Player : MonoBehaviour
{
	// The force which is added when the player jumps
	// This can be changed in the Inspector window
	public Vector2 jumpForce = new Vector2(0, 300);
	
	// Update is called once per frame
	void Update ()
	{
		// Jump
		if (Input.GetKeyUp("mouse 0"))
		{
			rigidbody2D.velocity = Vector2.zero;
			rigidbody2D.AddForce(jumpForce);
		}
		
		// Die by being off screen
		Vector2 screenPosition = Camera.main.WorldToScreenPoint(transform.position);
		if (screenPosition.y > Screen.height || screenPosition.y < 0)
		{
			Die();
		}
	}// Die by collision
	void OnCollisionEnter2D(Collision2D other)
	{
		Die();
	}
	
	void Die()
	{
		Application.LoadLevel("pierde");

I tried it, so this is what I came up with:

#pragma strict

// The force which is added when the player jumps
// This can be changed in the Inspector window
public var jumpForce : Vector2 = new Vector2(0, 300);

var rB2D : Rigidbody2D;

function Awake()
{
	rB2D = GetComponent.<Rigidbody2D>();
}

// Update is called once per frame
function Update ()
{
	// Jump
	if (Input.GetKeyUp("mouse 0"))
	{
		rB2D.velocity = Vector2.zero;
		rB2D.AddForce(jumpForce);
	}
	
	// Die by being off screen
	var screenPosition : Vector2 = Camera.main.WorldToScreenPoint(transform.position);
	if (screenPosition.y > Screen.height || screenPosition.y < 0)
	{
		Die();
	}
}// Die by collision
function OnCollisionEnter2D(other : Collision2D)
{
	Die();
}

function Die()
{
	Application.LoadLevel("pierde");
}