Clean up the JS and implement JS remove post.