1. Revert the module pattern in last commit. This doesn't seem to work well with Ember.js. RowModel has a reference to itself in Ember's Application.
2. The reason why last commit didn't work is because of a wrong property was used in expand/collapse children. Even that is fixed, module pattern still doesn't work well with Ember.