It evaluates the input string(stored in %js) as javascript and returns the resulting value: an object containing a single key("test") with a string value of 4000 a's("aaaaaaaaaaaaaaa....")
The documentation for MSScriptControl is scarce but
here you go