Copied Code From Stack Overflow

Just copied code from first jsfiddle linked in top answer from here
http://gis.stackexchange.com/questions/88684/make-sidebar-div-active-on-marker-click-and-vice-versa
. Doesn't want to work at the moment.