remove ~ in function textarea2div() since it creates extra line break in the textarea