script to load mods into JSON from document cache