fixed bug in web.js that prevents server startup, and a misspelling in index
folder name change from static to public