Fix cyclomatic complexity of StarRating method
(https://github.com/ibm-js/deliteful/issues/95)