Is it possible to have sage run javascript code?

Is it possible to have sage run javascript code? Maybe write the code in the 4GL script? Anybody have any ideas that may work?