moved scrollTo function to the HTMLElement prototype