Don't use javascript for simple tasks.

This fixes your text wrapping problems without using javascript.