Update main.js

amended answer to question 2