client side templating implementation for putting in priorScores