Delay initialize_filter to window load.

Currently, we need an extra check to wait for the chat script to be loaded since we trigger at DOM ready.
We can get rid of this check by simply waiting for window load instead.