From v3.0.1 of jQuery UI Stars by Marek "Orkan" Zajac.