refactoring TFPlayer.prototype.getRating()