Tests that adding a track and changing its mode through JS doesn't crash the browser.