Update zui.js

Made ViewObject event handlers configurable at constructor