Ah, didn't realize this earlier, but see if you can extend InfoBubble instead of modifying it directly.

See http://jsfiddle.net/ZCNFA/1/ as an example of insertion of statements in existing methods/constructor.