As quake shakes Indonesia, an imam prays on