JS client for consuming the PiBase JSON API