posts.js and users.js updated