Bluetooth Class-of-Device(CoD) Javascript decoder