Update main.js and index.html

Added the reset option.