fix errors with jquery