tidy up ./index.js to use routes array