MDN 7/17/2015

I switched to another feature today which is highlighting elements in the diagrams related to recently visited pages. I was looking for a module/code to do that. I found a snippet of code that I am trying to understand.