fix site_bar JS for jquery 1.8