Update main.js

Modified to use https instead of http