Fix JS Generator