Lille JS refacto