Change javascript generators part 2