from http://fyneworks.com/jquery/star-rating/