Use JSON.stringify instead of require()

require() fails when loading config files ending in ".js", because it
tries to interpret the contents as code and fails with a syntax error.
Also a mild security issue to be (possibly) executing code found in a
config file.