Update mainScript to fire cookiebar