Example js inherit