Fixed $ not defined issue in sidebar.