Changed insertBefor to div.chat