fixed the issues with jquery