Javascript exercise.