Remove DOM dependent configuration logic, store in mongo.config

const is a reserved word in js.
Chrome doesn't care if its used as a property name by IE breaks so everything is now stored in mongo.config