Updated web.js for browser usage.

Updated web.js for browser editing.