performance optimization (remove Array.prototype.slice)
fix accidental global variable
missing semicolon
optimize performance
speedup demo pages
fix unsupported window.scrollY, window.scrollX in IE8-11 (#1574)