Get the id from the video element

JS is only loaded once, so the first id was being used, which caused more duplicate IDs.  Instead get the id from the media's element.