more fixes to js client
js client: encapsulate omega events in their own module
more cleanups in js client