Added functionality for reading/parsing the url.

Edited the index and the server.js code.