Rearrange js so sortables are always init before we do things.

From #6565.