Tooltip: Check for removeAttr before using it

This resolves an issue with using the tooltip together with jsmol (using jQuery internally) 

JSmol adds which adds a clone method to the string class but does not add a removeAttr class method
which causes a failure at line 274  This attempts to fix it by checking for removeAttr too