added posts.js in collection dir