Update exercice1.js

Final version of the exercise 1.