I'm experienced with js and have worked with large enterprise site.
I already look at your script and if you you tell me when function recent_recharge is called I can fix this for you. There is no true threading in js, but your script work fine if you just call it once. I think it get called multiple times by some kind of Event.
As I'm new to freelancer.com, I will charge you very low.
Thanks
Cuong