read input from index.html