fixed typo in web.js
slowly modifying web.js
first attempt at web.js from file.