Finished altering js for new post methods