JS primefactors done