completed second javascript challenge