Newer versions of Jenkins change how the on-demand gets rendered so we need to use a timeout to YUIify the buttons