Added compatibility for Safari @ OS X