Moving countdown Javascript outside of cache tag

This code would stop the countdown working periodically due to caching.