Added javascript for post.