We need some kind of robust shake detection algorithm in JS that has very minimal false positives/negatives.