Javascript if iOS