Virtual Token Bus protocol Emulator in javascript