modify posts
modify javascript promise