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