Detect a shake in iOS Safari with Javascript