Status checker for Quickblox written in Javascript (node.js)