Implementation of SMSAPI.pl for node.js