Make it work in safari