Refactor detect_followers js partial (2)