A little js refactoring and graphical enhancements
Made dynasty link in portraits clickable