Moved inclusion test function to ui.js. Also defined a new function, roughly, that rolls up data and returns an array of key values