This iframe has no responsibilities other than providing a Javascript API. In your domain it could connect to your server-side APIs to give other domains a way to access your services.