Eight exercise for javascript