fixed up the js to make active the correct sidebar entry