Update main.js

Fixing a typo 'restar' to 'restart'
Merge pull request #2 from demesne/patch-1

Update main.js