Fixes doc for ajax detector
Adds flash detector and its test