ruby and node.js external script run functions