how to this code in javascript?

using UnityEngine;
using System.Collections;

public class CharacterSpawnScene2 : MonoBehaviour {

	void OnLevelWasLoaded(int thisLevel)
{
	  
    	transform.position = GameObject.FindWithTag("spawn").transform.position;
		
}
}

Only the function declaration must be changed:

function OnLevelWasLoaded(thisLevel: int)
{
    transform.position = GameObject.FindWithTag("spawn").transform.position;
}

The using lines and the script class declaration are internally created by the UnityScript compiler.

OnLevelWasLoaded( thisLevel : int ) : void
{

transform.position = GameObject.FindWithTag("spawn").transform.position;

} }