Added the generator and n to js