javascript iphone not working