api.showExternalContent(url, options) .on('close', onClose); }); };