Local jQuery and bug correction