changes for posts javascript