Node.js function that sends data to Keen.IO collections