JavaScript inheritance test.