Accessing javascripts from C# scripts

Recently I set upon using waypoints to control my Fish in the water. I use a slightly modified version of the AutoWayPoint from the FPS tutorial.

When I tried to access these waypoints from the Fish the AutoWayPoint type was not recognized.

I had forgotten that the AutoWayPoints were written in javascript and my own scripts are all in C#. This mix is likely causing the problem.

My question is the following: Is there any way to access these waypoints from my own C# scripts, short of rewriting the whole AutoWayPoint script from javascript to C# or vice versa?

Put the javascript file in one of the earlier compilation pass folders. I'd recommend using Plugins (YourProject/Assets/Plugins)

C# should then recognize the class

Edit:

Here's the documentation about what order folders are compiled in http://unity3d.com/support/documentation/ScriptReference/index.Script_compilation_28Advanced29.html