Исправьте участки:
if ( ( exitPointY >= topEdge ) && ( exitPointY <= bottomEdge ) && ( exitPointX > (leftEdge + reasonableWidth) ) ) {
$('#param' + id).text("5.0");
var rating = progress * 5 / width;
rating = Math.max(Math.ceil(rating), 1);
$('#param' + id).text(Math.ceil(rating).toFixed(1));