Judges not only decided based on faith. They clearly mentioned the following things in their judgement based on the documents / reports by Archaeological department
1. Masjid was constructed after demolition of the Temple.
2. Masjid was not constructed as per Islam grammar.
3. It was constructed as the symbol of Victory by Babar.
4. Earlier days Namaz was not performed there.
I think this would be the better judgement for this case. Unnecessary hype was created by media for this verdict. Younger generation of India won't bother about religion.