added fs variable to web.js
added encoding when reading index.html