index.js
function addCoordinates(coordArray, number) {
  for (var i = 0; i < number; i++) {
    coordArray.push(generateLonLat());
  }
}
function addCoordinates(coordArray, number) {
  for (var i = 0; i < number; i++) {
    coordArray.push(generateLonLat());
  }
}
function addCoordinates ( coordArray , number ) { for ( var i = 0 ; i < number ; i ++ ) { coordArray . push ( generateLonLat ( ) ) ; } }
Adds a random coordinate to an array
@param {Array} coordArray the coordinate array
@param {Number} number     amount of coordinates which should be added
Adds a random coordinate to an array