This version is old school.
Please find jQuery plugins on npm.
jQuery Rating
by Nagesh Vanam
jQuery plug-in for easy rating with stars which configurable to modify the look and feel of rating bar.