Simple example of iOS platform to javascript communication