Transpose function changes text in div