Fix 186

Fixed version of #186.

```bash
$ git remote add upstream git@github.com:appium/appium.git
$ git fetch upstream
$ git checkout -b fix
$ git cherry-pick cfbded8
$ open -a Xcode app/ios.js 
$ git add .
$ git commit
$ git cherry-pick 689ae95
$ git cherry-pick c5652f5
$ git cherry-pick e6a9c50
$ git rebase -i HEAD~2

pick 5fa17ab Add support for setValueImmediate
f 54144df Fix semicolon
```