Ref to phonegap.js