safified editable.js value handling

fixes #1891