Turns a stream of JavaScript into a stream of console output it creates in a real browser environment.