into to inheritance in js