Fixed text width function, no longer a jquery plugin.