smallest multiple in js