Added onclick event for selecting articles

selected articles are denoted in a dictionary called
'previously_clicked' - adds entry to this dictionary when an article is
clicked and deletes entry when you click the same article again