Update main.js

added changeMode button