handle reading gpio state
rename file to WriteGpio
wip refacto js