JS API: fix native bridges