web.js file write-out and index.htm