Get results from api on index load via xhr