Fixed Probability to adapt with data change
Implement local storage instead of parsejs
merge witl Duc's code