Bug #208. Javascript exception thrown when clicking on prehistory and nothing happens

__Link to code review:__ http://mrccodereview.cloudapp.net/ui#review:id=1118