$.initialize should come first before dispatching.