Update gpio.js

Make refresh rate for inputs configurable