Added support for Safari.