testing how javascript inhertance works