Javascript

hi all,
i have do it in C#

		GameObject asso = GameObject.Find("First Person Controller");
		Vitaplayer vitaplayer = asso.GetComponent<Vitaplayer>();
		vitaplayer.health -= danno;

but i need in javascript
how i can do it?
because in the second row unity give me an error…

thanks

in unityscript this would be:

var asso : GameObject = GameObject.Find("First Person Controller");
var vitaplayer : Vitaplayer = asso.GetComponent(Vitaplayer);
vitaplayer.health -= danno;