making web.js to real input from index.html