adding add limits js to chx and spi