json passes from controller to main.js

so we can use it with d3