Hi Aldrich.
Your solution has some async problem. You fill data attributes after tweeter code used it.
So please try to use this easy solution:
1 Add HTML component on the page http://prntscr.com/3ieo26/direct
2 Click "edit js", navigate to "HTML Source" tab and paste your code in editor like this: http://prntscr.com/3ieots/direct
pre
code
<a href="https://twitter.com/share" class="twitter-share-button" data-text="World" data-via="111" data-size="large" data-related="222" data-hashtags="3333" data-dnt="true">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
/code
/pre
That's all.
Regards.