adding break
refactoring jquery code for github log