add safari 5 support