changed format-data.js to training.js