fixed web.js bug