created javascript exercise