Fix JS generator to pass instanceOf test.
Fix Closure test.