js resize video for chrome bug