Dynamics of a viscoelastic liquid filament connected to two mobile droplets