Create relatedposts.js