revised web.js 1st try