another bug in API wrapper...

Uncaught ReferenceError: totalScore (in apiwrapper.js) is not defined

Signed-off-by: JB Touchard <jbt@txtnet.com>