fix to web.js