web.js to take data from indexhtml