changed web.js to inclde public directory