It wasnt used for anything in this file, but now that i think about it it is still defined in pages/browse.js and that definition should probably be moved here, since the datamanager knows about what layers it has and it can be referenced in pages/browse.js.