Preliminary C <-> JS bridge API