js resizing of videos