copied js to post.html (so lazy)