Data in json instead of js scripts, arbitrary file lengths supported