fixed some jquery incompatibilities