score.js updated

totalScore e acum global.