modified getRating to use ternary statement and plain text span creation