Edited view to accommodate new JSON response structure

* mainIndex.html divs have been tweaked to iterate correctly through the new structure
* application_controller.rb was changed to remove names from parent objects