changed phone gap.js