translate bash script to node script and add version bumping