completed javascript exercise2