Escaping quotes in json files

…which broke the archive (and added micro optimization in for loop in main.js)