Move ajax to after onDeviceReady;add 20px header to ios7