A javascript controller for Sonos systems