Added JSON files for data and edited main .js file to test .when