adding window.scroll to the class, updated README and demo file