add js for chx and spi