Fixed issue with jquery getting wiped out