markup update

- support for js modal dialog
- generate markup string correctly
- convert from markup to data works!