refactored diet and exercise retrieval so all entries are saved in JS