loader works in safari and firefox, not chrome