BUG: add-in javascript
BUG: do not close figure on convert