updated https in js