Receive Javascript information within Unreal

Hi the following code uses javascript to send/receive bluetooth data over Google Chrome to a hardware device.

link text

What is the best way to use this javascript code within the Unreal editor in order to communicate with the hardware?