Updated web.js
Added index, updated webjs to do stuff.
fixed bug