herencia in javascript example