updated postsByAuthor.js