adding distribute.js