Enabling javascript callbacks in iOS

This should enable callbacks to JavaScript from the selected pin on the map. It returns the index that was given to the pin.