Update main.js

Forgot to change comment.
Per redmunds, + menu existence check