Change modal scrollbar fix to avoid using $.ready

The problem described in https://github.com/twbs/bootstrap/issues/8703