While the actual content you're including there appears to be some custom Javascript, the issue itself appears to be related to some default HubSpot functionality. For issues like that, it's generally best to contact our Support team (since this forum is dedicated to API/development issues). You can reach them by clicking on the 'Help' widget in your portal, or by calling 1 888-482-7768 x3.