Changed web.js to use readFile (asynchronous)