A JavaScript Hardware Interfacing Library for the PCI and USB bus