Move M.isIos to browser.js

* Add tests

Change-Id: Ibec074b0c962e970c0f9a291055e3dbd0f36eb40
Merge "Move M.isIos to browser.js"