update web.js to print proper message