Simplify code, delete trace panels when changing simulation JSON
Use _.contains for array
Misc fixes
wip
Improve extrapolated formulas