Use the tracks loaded event on older Firefox