Refactoring original Leaflet.Playback