rewrite web.js