const invocation = new XMLHttpRequest(); const url = 'https://pad.xpub.nl/p/special_issue_8_cnn/export/txt'; function findCategories(data){ // Return categories that this page is part of // by doing a reversed dictionary lookup var current_url = window.location.href; var keys = Object.keys(data) var categories = []; for(var i=0; i