iPhone ui js fix