update js for show all posts