Why is my spinner only working in safari?