Fixing LinPhoneGap.js