fixing broken sidebar parsing, jquery ref became ambiguous