fixed JS to work wclasses instead of ID's sidebar