where can I put javascript so that it runs when a phonegap app opens up? Like if I close an app and reopen it, I want the javascript to run. I thought maybe onrendercomplete was the right place, but it does not seem to be working for me.