simple rate widget on javascript