change configfile from js to json