Copied web.js

I had no choice but to copy Balaji's code since I couldn't get mine to work.