porting bootstrapMessage to jquery 1.10