declare app then initialize onDeviceReady