Some exercices in JS