Add star rating front end code.