Fixed JavaScript bug for auto scroll and bug for default settings.