Javascript, progress bar, scores