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.
Corrected references to assets since the build puts the demo files in a demo folder
Merge pull request #2901 from masterbee/data-inview

Init pattern tweak to window.timer function