add sample for js inheritance