Fixed bad API call to jQuery.atr()

Not sure if this problem still exists upstream, but the buggy version makes '<a className="close"...' instead of '<a class="close"...'
Merge pull request #303 from davad/patch-1

Fixed bad API call to jQuery.attr()