return ref to phonegap.js