set tip differently based on element type
fix regex for class lookup in IE8 and below
Merge pull request #31 from ordrin/dev_ricky

set tip differently based on element type