Update specs for FoDetectCtrl

Refactor tasks.js.coffee to follow name conventions