updated index.html and logic.js