Fixed comment
Increased flexibility and reduced code redundancy for tab selection
Restructured issue-history-tabs.js and simplified it