Capture output for slimerjs