changed web.js to handle test.js