You do need phonegap.js