bonescript.js: added getPinMode