optimized web.js