add data json
refactor main.js