updating ref to phonegap.js
restructuring files