added message array sending to output port
Huge improvement to JS support