Im trying to generate a javascript file that contains a json array, so before im adding the code to generate a javascript file, all function works well.. but then i create t