added code for generating lastNews.json