updating server.js to work with submodule