There was the problem that addthis.init() was called before the file was loaded. Now the function is called inside the callback of script loaded.