refactored code for star to enable starred/unstarred state
crazy, unintentional but very cool effect
added JS to show when link is favorited and unfavorited