Yanfly JP Costs and Stat Points

So Yanfly put out this video awhile back, http://yanfly.moe/2015/11/25/tips-tricks-stat-upgrades

that lets you use JP as stat points. I have made it increase the cost everytime when you buy a point so you can't sit and grind the same area forever. This works only as long as you remain in the session, if you reload a save later, it will display the initial value, and you can buy it as well for that value, but it will deduct the correct amount. There has to be a script call you can call to refresh things I would imagine.

<Learn Cost: 20 JP>

<Learn Cost Eval> user._paramPlus[0] +=5 + Math.randomInt(10);

user.forgetSkill(9);

skill.learnCostJp +=20;

user.refresh();

</Learn Cost Eval>

Is my code, thanks if anyone can help.
I posted a solution for this problem in the other thread

http://forums.rpgmakerweb.com/index.php?/topic/46341-javascript-questions-that-dont-deserve-their-own-thread/?p=525636
Thanks I'll try that! Have a good weekend.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-jp-costs-and-stat-points.53237/