add function to craft comment div and function to append the formatted div