fixes linting errors in ios.js