Move data from main.js to data.js