harden .scrollTop function call after finding chatDiv