addes jquery to close messages