Declared ratingString outside if/else block in wheel.js