Tweaked web.js