Fix issues with generated JavaScript code

* Add @observable to prevent minification of children and name
* Change notification mechanism of children list