How about `smil = smil.split('/').pop()`?