JS fixes for separate pub/priv certs. Saving response still a WIP