fixed typo: 'buf' to 'Buffer'
added require('fs')
required buf
updated index.html
tried to correct errors in web.js