Js version largest prime factor