Making sure the animation code won't run if the browser is Safari