day 2 javascript using outside object functionm