I have fixed some of the errors. The 10% upgrade is not showing much when the score is low. This is what happens in code:
apply: s=>{
s.fpc = Math.max(1, Math.floor(s.fpc * 1.1));
s.fps = Math.floor(s.fps * 1.1);
}