Moved posts.js to controllers/posts.js