Trying to wait till scripts are loaded before showing events