expose mediastream constructor in browser