access a c# var from javascript

Hi,
I’m trying to access a c# script/var from javascript.
Basically its the c# scripts from CarTutorial ~AlternatePhyscicsModel, and I am attempting to add Ai using waypoints.
I have the c# scripts in Standard Assets folder and the javsscipt file elsewhere. All scripts are on the same object.

I’m using (for drag and drop) but it will only look for a javascript named CarController.

var carController : CarController;

and i’ve tried adding

function Start()
{
    carController = GetComponent(CarController);
//or
    carController = GetComponent("CarController");
}

but still cant work it out. I’ve searched the forums for a few hours but couldn’t find a solution.

Any help would be great
Thanks

–Eric