I’ve been working on embedding the Groovy scripting language into
MaxMSP, via MXJ. It loads source files from Max’s search path, so it
behaves rather like the JS support.
Groovy is an agile, dynamic language for the Java Virtual Machine
(JVM) which builds upon Java by providing features such as closures
and support for domain-specific programming (such as XML processing
and database access). It integrates seamlessly with Java and is very
similar in syntax.