GPIO based I/O and interrupt detection with JavaScript on the BeagleBone or Raspberry Pi