Adds text width for javascript and ruby