[UI] Implemented calling D functions from JS