Introduce ui-ready event

Change-Id: I1b0c70b5305b74e9f667da421ec1d588186cf532
diff --git a/dev/js/src/init.js b/dev/js/src/init.js
index 6e6b4f1..f49ff3f 100644
--- a/dev/js/src/init.js
+++ b/dev/js/src/init.js
@@ -505,6 +505,8 @@
         });
       };
     };
+
+    window.dispatchEvent(new Event("ui-ready"));
       
     return obj;
   });