updated web.js
consuming from index.html now