Just verify the expected variables/methods exist prior to using them (lines 99,197,365 right now):
if(hbspt) hbspt.cta.load( ^ added ^