lib/chord.js
function (index, scaleId) {
    scales.splice(index, 0, scale.create(chord.root, scaleId));
  }
function (index, scaleId) {
    scales.splice(index, 0, scale.create(chord.root, scaleId));
  }
function ( index , scaleId ) { scales . splice ( index , 0 , scale . create ( chord . root , scaleId ) ) ; }
Add a scale at a particular index
Add a scale at a particular index