Javascript/Java Live API

I see there is a jsliveapi.mxo in the jsextensions folder, so it guess it should be possible to control live via js, no?
Is this somewhere documented (at least the name of the classes)? And is there something similar in the works for java?