convert mapUrl from pages to API function renderJs.mapUrl()