I have to ask...
Any reason you're loading the JS twice for this snippet..?
- Once through a script tag that would better be served as add_js_file('//assets.pint.../js/pinit.js', true);
- Once through an add_js call that does exactly the same, except asynchronously (i.e. it doesn't stall page loading). But even in this case, add_js() is overkill, because the asynchronous flag and the fact this is written in raw JavaScript makes it a perfect candidate for an add_js_inline() call, where the code is executed before other scripts are loaded.