mem.js now generates mem_output.json file