Remove JS warning when using typedef. Enable typedef tests when running as JS.