Command + Double-Click on the js object in max opens the js coding window. The default object has one inlet and outlet, but can add more by typing things like “outlets = 2;” .
Create functions to handle incoming messages:
function name_of_function_corresponding_to_desired_input_message ()
output(0, “Desired Output String”);
Save script as a .js file somewhere in the max search path, then create a js object with the filename as an argument