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

git-svn-id: http://svn.cmsmadesimple.org/svn/cmsmadesimple@9198 3d254a34-79dc-0310-9e5f-be208747d8a0