JS clean Code