Update main.js
Update main.js
Merge pull request #38 from woodss/master

Added self