Wire in configuration from plone and use the url from the js already.