switch to js
delete vs set undefined
convert to JS
use protoclass instead of structr