Update main.js

Typos in line 41 and 42
Merge pull request #2 from jamesal4/master

Small fixes