support embed js for media that does not yet have an ID

This should fix the key frame picker when uploading media.