Fixed bad API call to jQuery.attr()

Not sure if this problem still exists upstream, but the buggy version makes '<a className="close"...' instead of '<a class="close"...'