Update main.js

fix authentication error. (Fixed on the live server)
Merge pull request #1 from yulrizka/patch-1

Update main.js