Fix variable name
Fix variable name
Get all necessary data, ready to sort and convert into a readable json for browser