The code below is first the client code, then the class file.
For some reason the \'deductTokens()\' method is calling twice, thus charging an account double. I\'ve been
I know this will sound strange but make sure that you don't have tag with empty src="" attribute or any css style refering to empty url (like background: url();) on your site around the place when you have your code that runs twice.
Read about some trouble this may cause here: http://hi.baidu.com/zhenyk/blog/item/38a1051fc63b96c3a686698f.html