Updated js calls to https