merger.sh implemented in node