making web.js simpler