fix text spans to prevent jumping text while dragging

- add markup to js output
- fix span width css