main.js: Running real data coming from a database converted into JSON