correcting new require in web.js