Update index.js

Changed default ports to be 443 for SSL and 80 for non-SSL (they were switched).