js bugfix + gpio index bugfix