NodeJS Code for COMS App