Touchkit + PhoneGap Plugins

I tried to do this, but the javascript connector has not access to corodova (“window.cordova” is undefined).

How can I access cordova and its plugins outside the index.html file?