Call objective-c from javascript with callback