moving scripts to json file