Hi there! It looks like you are trying to use the JavaScript API from widgets.js by calling https://dev.twitter.com/web/javascript/initialization. This call should be invoked “after a page has loaded”, as described in the documentation here. Have you tried including this line in your window.onload event handler? E.g.
window.onload = function() {
twttr.widgets.load();
// do something else
}
Alternatively, you can also try copying the blockquote snippet into your HTML. This approach is much simpler and more adopted than the JavaScript scripting API. Check out publish.twitter.com for more examples.
Hope this helps!