Playing with js inheritance