FindObjectOfType() inside a javascrip class does not work

how do I use FindObjectOfType in a javasript class?

class test
{
	function Start() 
	{    
		var s : GUITexture = FindObjectOfType(GUITexture);
	}
}

The code generates this error for the compile proces:

BCE0005: Unknown identifier:
‘FindObjectOfType’.

Get rid of the “class test” stuff. A script in Unityscript is automatically a class that extends MonoBehaviour.