move JsVar to top-level
inline acceptWithInsertRemove