the server.js script a bit refactored
the client side index.js script
add functionality to detect which url path was requested
a prototype for a router to handle different urls
and adding the route functionality by dependency injection

to server2.js and index.js. better option that hard-wiring it.