This should be obsoleted by a global config js file.