Spectrum API - JS Client library with samples