Fix bug when settings are lost, allow to pass DOM element to animateScroll