move svg namespace to a constant, calculate widths for every word
revert to setAttribute