fix regex for class lookup in IE8 and below