new JavaScript API
only add audio track if config.streams.audio is enabled