Sixth javascript exercise