Fixed script to stop apending results from one json to other