First step towards emitting JS bridges.

For now we discriminate by argument count.