Update main.js

Added the reset option.