Solution is ready to work in cloud. Tables are ported to be generated from .hdbtable files. JavaScript is a pit organized - created seperate file colled util.js with all most commmon funtions. Events table is created and used in dashboard.