Repl: Make sure we use the same loader everywhere

Move repl demo code into a module so that we use the same instance of src/options.js everywhere