Smallest Common Multiple do not count

Tell us what’s happening:
Can anybody tell, why this code is not working. It works fine for [1, 12]. But then just stops working. What is wrong?

Your code so far

function smallestCommons(arr) {
  var b = 1;
for (var k = Math.min(arr[0], arr[1]); k<=Math.max(arr[0], arr[1]); k++) {b = b*k;
for (var i = Math.max(arr[0], arr[1])+1; i<b; i++) { loop2:
    for (var j = Math.min(arr[0], arr[1]); j<=Math.max(arr[0], arr[1])+1; j++) {
if (j == Math.max(arr[0], arr[1])+1) 
return i;}
  else if (i % j == 0) {continue loop2;}
     else {continue loop1;}
  return i;

smallestCommons([1, 13]);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36.

Link to the challenge: