Node.js implementation of the Circuit Breaker Design Pattern