Nice work! I've also done a similar thing (<a href="https://github.com/rstacruz/onmount" rel="nofollow">https://github.com/rstacruz/onmount</a>), and it's really useful in managing behaviors in a page.<p>For those wondering what this is for, I've written a document with guidelines in building scalable non-SPA apps leveraging this: <a href="http://ricostacruz.com/rsjs" rel="nofollow">http://ricostacruz.com/rsjs</a>