update post js