// The tag not properly close. // e.g $(AppClose).click(function () { HideAppBanner(); } // Fix it with: $(AppClose).click(function () { HideAppBanner(); });