Load scripts if window is already loaded