Finished functionality of display.html, modularized the API script to only handle the API request, and handled the response in main.js