added JS to save post_content