fix bugs

core.js: Child definition in Class function
dialog.js: restore callbacks function call