add find factor method 4 js