Restored scrollToElement() functionality.