Javascript side of the post completed