Make it work for Safari as well