Set up promises to display JSON data in view