-- added some trickery to insert browser-repl code into a page being returned