Make safari compatible