make it work in Safari

make it work in Safari