Update index.js

Setting initial state of pin to off...