made res.send data.lifeEvents into a json that sends lifeEvents and categories. updated the ajax request on client respectively. now to fix categories service