Update main.js

Fixed bug for a https link