attempting to load phonegap code from jQuery Mobile events