Properly handle the window object as HTML element. Closes #24
Added option unloadElements (default: true), to remove elements outside of the preload range from the DOM. Closes #22