Loop Through Key In Object Javascript Methods And Functions