Javascript eco friendly scroll/resize tracker.