move phonegap.js include into head