I think this is more correct as well to have it in the ready function.  Just need to test it.