Javascript class project 3