the line below will return some numbers in the format
8458.268,19166.142,13113.780,25837.795,13113.780,25837.795...
output=output.split("\n").filter(/./.test, /Coordinates/).join("\n").replace(/[^0-9.,]/g,'');
then it outputs in the line below... but before it outputs... I need to perform some calculations... like divide all those numbers by X
document.getElementById('inputTextToSave').innerHTML= output0 + output + output2;