forgot to add model.js in previous commits, also adjust extension to new trace format (appendedChild, etc.)