Refactored js to work with the new json format