change topic limit from 3 to 10, fix js format issues