Automatically scroll down chat div

Hello,

I am trying to automatically scroll down the bar to see the new message when I submit the form. Or when the page finish loading.
How some reason, I am not sure if the scroll smooth work on this situation.
I tried to write some JavaScript on the page it is not working.

Any help will be welcome.

Capture

Community Page
Last updated: