snip
is not a Martingale
You said it is not a martingale but it is martingale. You increase your betsize by 11.2% every time you lose and reset it to 10 if you win. That is no different to martingale, only modified a bit. This is bound to lose like any other martingale there is.
var loseMultiplier = .112;
betSize += (betSize * loseMultiplier);
Nice catch, then it is martingale after all, but instead of doubling he just raises his bets by a smaller percentage, so that will give him more tries than the ones following classic martingale but at the end of the day it is going to lose like any other system based on martingale.