Add jQuery selectors to doc ready

I noticed that the jQuery selectors weren't working if I included them before or directly after including jQuery. Is this the best way to make sure that doesn't happen, @richgilbank @gavinsmith?