Javascript inheritance for a 5 years old