moving shake listener into onDeviceReady