Move to new secret-less JS API.