fix syntax errors in ios alert script