Clean up page-index.js and ensure that it is only making one main API request