js test to fix initial animation in safari