filebrowser.js: minor fix in check for video html markup, adidtional check for selected element, preserving existing attributes