Fixed JS starRating bug