change the way to hide video elements so that it works in chrome and ff