I don't know if that is possible but is it possible for i.e to embed a javascript call inside a webpage and have an app which contains an uiwebview run that javascript code?
i.e the webpage calls a dofoo function but the dofoo javascript code is actually inside the iOS app. I know you can run js code in ios7 inside the app but would that work?