Hi guys, I managed to solve this algorithm or so I thought but when trying to pass the “smallestCommons([1,13])” it gives me an error. When I ran this code on my machine it returned the right number “360360” but it doesn’t seem to work on this site. Any ideas?

```
function smallestCommons(arr) {
var allNumbers = [];
var count = 0;
allNumbers.push(arr[0]);
allNumbers.push(arr[1]);
if(arr[1] < arr[0]){
var c = arr[0];
arr[0] = arr[1];
arr[1] = c;
}
for(var i = 0; i < arr[1]; i++){
arr[0]++;
arr[1]--;
allNumbers.push(arr[0]);
allNumbers.push(arr[1]);
if(arr[0] + 1 === arr[1]){
break;
}
}
allNumbers.sort(function(a,b){
return a-b;
});
var firstNum = allNumbers[0];
var multiplier = 1;
for(var i = 0; i < allNumbers.length; i++){
multiplier *= allNumbers[i];
}
for(var i = 0; i < multiplier; i++){
firstNum += allNumbers[0];
for(var j = 1; j < allNumbers.length; j++){
if(firstNum % allNumbers[j] === 0){
count++;
if(count == allNumbers.length - 1){
return firstNum;
}
}
}
count = 0;
}
}
smallestCommons([1,5]);
```