Update ssl ports in javascript