web.js reads content from index.html
Import fs
Fix variable type issues
Correct readfile function name