fixed compatibility issues with newer jquery versions