Removed # from links, added handler for highlighting

Handling of .active and .selected classes in the sidebar and
bottom-right container is now done by a global function, triggered by an
event (like the center function)