Refactoring JS
Refactoring&Optimisation autour du chat