variable js to c#

I have a variable in js I want to call in c #, how do I through GetComponent ()? I use to be able to use Ngui

Put the Js script in the standard assets folder so that is compiled before, and therefore available to, the C# script.

Unity - Manual: Special folders and script compilation order