basic javascript accessing object properties with dot notation