If it is USB, you should be able to do it directly in JS via Chrome.
Maybe an issue here is WebSerial, as HCI comes over a serial port device. I believe the OS should block access to the serial device once the host driver takes it as a Bluetooth adapter though.
IIRC, that restriction was removed.