First exercise for javascript