Update web.js

hopefully got it working, thanks to Luis Arriaga: https://class.coursera.org/startup-001/forum/thread?thread_id=3296#comment-9134