<script>
function fn(m, n) {
var r = m % n;
m = n;
n = r;
if (r == 0) {
return m;
} else {
return fn(m, n);
}
}
fn(1997, 615);
</script>