Finished client-side logic of the post page.