Make the result pane a JavaScript "object"

Aah, that is good to clean up code.