deterministic.js fixes
comment
move some assertions behind ASSERT