Updated main.js to listen on ssl port correctly