script to write version.js