The effect of the environment on the Faber-Jackson relation