added posts.js