FB-14497: Improved media-viewer.js. Applyed media-viewer for index.html