Refactor: remove leading undescores
Add test: mod deps state not persisted
Remove redundant 'window.' in docs