Init pattern tweak to window.timer function

* Corrects the cache property to ensure the body element is available to the window timer since it is declared in the head and the body element may not be available everytime.