masjid built by demolishing temple