Fixed web.js bug.
Fixed more bugs in web.js
Set up the index.html file as in example.