javascript for post.html