Update gpio.js

do not assume value is always 0